package com.xx.bysj.mapper;

import com.xx.bysj.dto.HnUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HnUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(HnUser record);

    int insertSelective(HnUser record);

    HnUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(HnUser record);

    int updateByPrimaryKey(HnUser record);

    /**
     * 通过用户名查询用户信息
     * @param user
     * @return
     */
    HnUser selectByUserName(HnUser user);

    /**
     * 通过用户名查询用户
     * @param user
     * @return
     */
    List<HnUser> selectByUserNameList(HnUser user);

    void updatePassword(HnUser user);
}